/**
 * 获取附加物品列表接口
 */

//引入Q模块
var Q = require('q');
//引入公共函数
var util = require('../../util');

//addGoods接口入口文件
var index = function(getData, postData, config, _redis, db) {
	let deferred = Q.defer();
	db.select('attachGoods').then(function(attachGoods) {
		deferred.resolve(attachGoods);
	}, function() {
		//获取附加物品列表失败
		deferred.reject('-0181');
	});
	return deferred.promise;
}

//暴露接口
module.exports = {
	index: index
}